package com.ztgf.commodity.models.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/*
 * @author: chenyu.wang
 * @date: 2020-08-26
 * @description:
 */
@Data
public class CommodityEsVO implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "商品图片")
    private String logUrl;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品描述")
    private String description;

    @ApiModelProperty(value = "商品价格")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal price;

    @ApiModelProperty(value = "原价")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "付款人数")
    private Integer payUserNum;

    @ApiModelProperty(value = "卖家店铺id")
    private Long sellerShopId;

    @ApiModelProperty(value = "卖家店铺名称")
    private String sellerShopName;

    @ApiModelProperty(value = "卖家店铺地址")
    private String sellerShopAddress;

    @ApiModelProperty(value = "品牌id")
    private Long brandId;

    @ApiModelProperty(value = "品牌名称")
    private String brandName;

    @ApiModelProperty(value = "类目id")
    private Long categoryId;

    @ApiModelProperty(value = "类目名称")
    private String categoryName;

    @ApiModelProperty(value = "是否新品推荐")
    private Integer isNew;

    @ApiModelProperty(value = "人气")
    private Integer popularity;

    @ApiModelProperty(value = "评论数量")
    private Integer evaluationNum;

    @ApiModelProperty(value = "商品创建时间")
    private Date createTime;

    @ApiModelProperty(value = "商品类目父级id")
    private Long parentCategoryId;

    @ApiModelProperty(value = "商品类目一级id")
    private Long firstCategoryId;

    @ApiModelProperty(value = "筛选属性ids")
    private String filterIds;

    @ApiModelProperty(value = "筛选属性名称")
    private String filterNames;

    @ApiModelProperty(value = "是否询价，0否，1是")
    private Integer isXun;

    @ApiModelProperty(value = "标签ids")
    private String labelIds;

    @ApiModelProperty(value = "商品浏览量")
    private Integer browseAmount;
}
